package com.idelan.commonMessage.model;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.Arrays;
/**
* @Description:    java类作用描述
* @Author:         jzhou
* @CreateDate:     2018\7\19 0019 9:30
* @UpdateUser:     jzhou
* @UpdateDate:     2018\7\19 0019 9:30
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public class MailQQParameter {
    @Email
    @NotBlank(message = "用户不能为空！")
    private String loginAccount;
    @NotBlank(message = "发件人授权码不能为空！")
    private String loginAuthCode;
    @Email
    @NotBlank(message = "发件人不能为空！")
    private String sender;
    private String[] recipients;
    @NotBlank(message = "邮件主题不能为空")
    private String emailSubject;
    @NotBlank(message = "邮件内容不能为空")
    private String emailContent;
    @NotBlank(message = "邮件格式不能为空")
    private String emailContentType;

    @Override
    public String toString() {
        return "MailQQParameter{" +
                "loginAccount='" + loginAccount + '\'' +
                ", loginAuthCode='" + loginAuthCode + '\'' +
                ", sender='" + sender + '\'' +
                ", recipients=" + Arrays.toString(recipients) +
                ", emailSubject='" + emailSubject + '\'' +
                ", emailContent='" + emailContent + '\'' +
                ", emailContentType='" + emailContentType + '\'' +
                '}';
    }

    public String getLoginAccount() {
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount) {
        this.loginAccount = loginAccount;
    }

    public String getLoginAuthCode() {
        return loginAuthCode;
    }

    public void setLoginAuthCode(String loginAuthCode) {
        this.loginAuthCode = loginAuthCode;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String[] getRecipients() {
        return recipients;
    }

    public void setRecipients(String[] recipients) {
        this.recipients = recipients;
    }

    public String getEmailSubject() {
        return emailSubject;
    }

    public void setEmailSubject(String emailSubject) {
        this.emailSubject = emailSubject;
    }

    public String getEmailContent() {
        return emailContent;
    }

    public void setEmailContent(String emailContent) {
        this.emailContent = emailContent;
    }

    public String getEmailContentType() {
        return emailContentType;
    }

    public void setEmailContentType(String emailContentType) {
        this.emailContentType = emailContentType;
    }
}
